-- GENERATED SPELL FOR [Maggot Eye] --


function spell0_1753(pUnit, Event) --@Curse of Thule,Self--
pUnit:FullCastSpellOnTarget(3237,pUnit)
pUnit:RegisterEvent('Sorts_1753', 2000, 1)
end

function spell1_1753(pUnit, Event) --@Life Harvest,Heal--
pUnit:FullCastSpellOnTarget(3243,pUnit)
pUnit:RegisterEvent('Sorts_1753', 1000, 1)
end

function Sorts_1753(pUnit, Event)
local choix_sorts_1753 = math.random(0, 1)
if choix_sorts_1753 == 0 then
pUnit:RegisterEvent('spell0_1753', 1, 1)
end
if choix_sorts_1753 == 1 then
pUnit:RegisterEvent('spell1_1753', 1, 1)
end
end

function mob1753_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1753', math.random(1500, 3000), 1)
end

function mob1753_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1753_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1753_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1753, 1, 'mob1753_Action')
RegisterUnitEvent(1753, 2, 'mob1753_Leave')
RegisterUnitEvent(1753, 3, 'mob1753_Kill')
RegisterUnitEvent(1753, 4, 'mob1753_Die')
